package com.dm.cloud.images.controller.defalut;

import com.dm.cloud.oauthlib.service.anon.HasLogin;
import com.dm.cloud.tkmybatis.service.BaseEntityService;
import com.dm.cloud.tkmybatis.service.EntityBaseController;
import io.swagger.v3.oas.annotations.tags.Tag;
import com.dm.cloud.images.common.po.ImagesContainer;
import com.dm.cloud.images.common.dto.ImagesContainerDTO;
import com.dm.cloud.images.common.request.ImagesContainerSearchRequest;
import com.dm.cloud.images.service.ImagesContainerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
   * @author hcx
   * @type ImagesContainerController.java
   * @desc 容器业务信息表 ImagesContainer controller
   */
@RestController
@RequestMapping("/apis/v1/imagesContainer")
@Tag(name =  "容器业务信息表  ImagesContainercontroller")
@HasLogin
public class ImagesContainerController extends EntityBaseController<ImagesContainerSearchRequest, ImagesContainer, ImagesContainerDTO> {


    @Autowired
    private ImagesContainerService imagesContainerService;
    @Override
    public ImagesContainer getEntity() {
        return new ImagesContainer();
    }

    @Override
    public ImagesContainerDTO getDTO() {
        return new ImagesContainerDTO();
    }
    @Override
    public BaseEntityService<ImagesContainerSearchRequest, ImagesContainer> getService() {
        return imagesContainerService;
    }


}
